<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ace="http://www.icefaces.org/icefaces/components" 
      xmlns:ice="http://www.icesoft.com/icefaces/component">
      
	<ui:composition template="../WEB-INF/templates/template.xhtml">
		<ui:param name="title" value="Fact Entry System" />
        		
		<ui:define name="header">
			<ui:include src="../WEB-INF/templates/header.xhtml" />    
		</ui:define>
		
		<ui:define name="menu">		
			<ui:include src="../WEB-INF/templates/menuLeft.xhtml" />               
		</ui:define>
		
		<ui:define name="content">
	       <ice:panelCollapsible expanded="true" id="userSearchPanel" style="width:50%;">
             <f:facet name="header">
               <ice:panelGroup>
                 <ice:outputText value="Sign In" style="font-size:14px;" />
               </ice:panelGroup>
             </f:facet>
             
             <ice:panelGroup style="width:100%;font-size: 14px;">
               <ice:panelGrid columns="3" width="100%">
                 <div>
                   <ice:outputLabel for="loginName" value="User Id" />
                   <ice:inputText id="loginName"  value="#{loginBean.loginName}" size="40" maxlength="30" />
                 </div>                 
                 <div>
                   <ice:outputLabel for="password" value="Password" />
                   <ice:inputSecret id="password" value="#{loginBean.password}" size="40" maxlength="30" redisplay="true" />
                 </div>
                
                 <div>
                 <ice:panelGroup></ice:panelGroup>
                 <ice:panelGroup style="height: 30px;margin-top: 10px;">
                 	<h:commandButton id="loginButton" actionListener="#{loginBean.checkLogin}" action="#{loginBean.loginAction}"  value="Login" />
                 	
	             	<h:commandButton id="resetButton" actionListener="#{loginBean.reset}"  value="Reset" /> 
	             </ice:panelGroup>
	             </div>
	             
	             <ice:panelGroup></ice:panelGroup>
                 <ice:panelGroup style="height: 30px;margin-top: 10px;">
                 	<h:outputText id="loginError" value="#{loginBean.status}" style="color:RED" />
	             </ice:panelGroup>
                 
                             
               </ice:panelGrid>
             </ice:panelGroup>
           </ice:panelCollapsible>
         
         
			</ui:define>
		
		<ui:define name="footer">
	       <ui:include src="../WEB-INF/templates/footer.xhtml" />    
		</ui:define>
		
	</ui:composition>
	
</html>